import Router from 'koa-router'

import DlyMaterialController from '../controller/dlyadmin/materialController'

const router = new Router()

router.prefix('/dlyadminapi/material')

router
/**
	 * @swagger
	 * /dlyadminapi/material/add:
	 *   post:
	 *     description: 添加素材
	 *     tags: [后台素材管理]
	 *     summary: "添加素材"
	 *     parameters:
	 *     produces:
	 *       - application/json
	 *     responses:
	 *       200:
	 *         description: 获取数据列表
	 * */
	.post('/add', DlyMaterialController.add)

	/**
	 * @swagger
	 * /dlyadminapi/material/get:
	 *   get:
	 *     description: 获取列表
	 *     tags: [后台素材管理]
	 *     summary: "添加素材"
	 *     parameters:
	 *     produces:
	 *       - application/json
	 *     responses:
	 *       200:
	 *         description: 获取数据列表
	 * */
	.get('/get', DlyMaterialController.get)
	/**
	 * @swagger
	 * /dlyadminapi/material/del:id:
	 *   get:
	 *     description: 获取列表
	 *     tags: [后台素材管理]
	 *     summary: "添加素材"
	 *     parameters:
	 *     produces:
	 *       - application/json
	 *     responses:
	 *       200:
	 *         description: 获取数据列表
	 * */
	.delete('/del/:id', DlyMaterialController.del)
	

export default router
